package edu.udo.sopra10.chaturaji.exceptions;

/**
 * Abstract base exception for specialized Chaturaji game exceptions.
 * 
 * @author Patrick Westerhoff
 */
public abstract class ChaturajiException extends RuntimeException
{
	private static final long serialVersionUID = 3041470213038757035L;
	
	/**
	 * Constructs a new Chaturaji exception with null as its detail message.
	 * 
	 */
	public ChaturajiException ()
	{
		super();
	}
	
	/**
	 * Constructs a new Chaturaji exception with the specified detail message.
	 * 
	 * @param message the detail message.
	 */
	public ChaturajiException ( String message )
	{
		super( message );
	}
	
	/**
	 * Constructs a new Chaturaji exception with the specified detail message
	 * and cause.
	 * 
	 * @param message the detail message.
	 * @param cause the cause.
	 */
	public ChaturajiException ( String message, Throwable cause )
	{
		super( message, cause );
	}
	
	/**
	 * Constructs a new Chaturaji exception with the specified cause and a
	 * detail message of
	 * <code>( cause == null ? null : cause.toString() )</code> (which typically
	 * contains the class and detail message of cause).
	 * 
	 * @param cause the cause.
	 */
	public ChaturajiException ( Throwable cause )
	{
		super( cause );
	}
}